package ru.example.mongotest2.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(value = "person")
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Person {

    @Id
    private String id;

    private String firstName;

    private String lastName;

    private Integer age;

    private Integer sex; // 1 - М, 0 - Ж

}
